
<?php

use App\Api\Controllers\AnnounceController;
use App\Api\Controllers\CheckController;
use App\Api\Controllers\CommonDetailController;
use App\Api\Controllers\CompanyClassController;
use App\Api\Controllers\DriverController;
use App\Api\Controllers\ExpressController;
use App\Api\Controllers\ExpressTempleteController;
use App\Api\Controllers\LogController;
use App\Api\Controllers\LoginController;
use App\Api\Controllers\MaterielController;
use App\Api\Controllers\MaterielTypeController;
use App\Api\Controllers\ModuleController;
use App\Api\Controllers\OverflowBreakageController;
use App\Api\Controllers\PackageController;
use App\Api\Controllers\RoleController;
use App\Api\Controllers\SalesReturnController;
use App\Api\Controllers\SellController;
use App\Api\Controllers\SettingController;
use App\Api\Controllers\StatisticsController;
use App\Api\Controllers\StorageController;
use App\Api\Controllers\StorageManageController;
use App\Api\Controllers\SupplierCustomerController;
use App\Api\Controllers\SystemConfigController;
use App\Api\Controllers\TallyClassController;
use App\Api\Controllers\TallyController;
use App\Api\Controllers\UploadController;
use App\Api\Controllers\AdminController;
use App\Api\Controllers\UsersController;
use App\Api\Controllers\VersionsController;
use App\Http\Controllers\Api\CommonController;
use App\Api\Controllers\OperationLogController;
use App\Http\Controllers\Api\SyncDataController;
use Illuminate\Support\Facades\Route;
use App\Api\Controllers\KuaidiController;
use App\Api\Controllers\RegionController;
use App\Api\Controllers\MaterielClassController;
use App\Api\Controllers\PictureEditingController;
use App\Api\Controllers\TextImageController;
use App\Api\Controllers\TextImageTemplatesController;
use App\Api\Controllers\CreateExpressTemplatesController;
use App\Api\Controllers\HcUploadController;
use App\Api\Controllers\ContentTagsController;
use App\Api\Controllers\ImageLabelController;
use App\Api\Controllers\DispatchListController;
use App\Api\Controllers\DeliverySlipController;
use App\Api\Controllers\DeliveryGoodsController;
use App\Api\Controllers\QuotationNoController;
use App\Api\Controllers\QuotationGoodsController;
use App\Api\Controllers\ReceiptController;
use App\Api\Controllers\MedicalDeliveryOrderController;
use App\Api\Controllers\MedicalDeliverOrderController;
use App\Api\Controllers\SealManageController;

Route::post('sync_cost_log', [SyncDataController::class, 'syncCost1']);//同步当前成本至上一次成本中
//登录部分
Route::post('send_code', [LoginController::class, 'sendCode']);//发送验证码
Route::post('login', [LoginController::class, 'login']);//账号登录

Route::get('storage_manage_export', [CommonController::class, 'export']);//导出库存报表
Route::get('download', [CommonController::class, 'download']);//下载库存导入模版
Route::post('upload_file', [UploadController::class, 'upload']);//单图上传
Route::post('kuaidi_list', [KuaidiController::class, 'list']);//快递公司列表
Route::post('new_kuaidi_list', [KuaidiController::class, 'newList']);//快递公司列表
Route::post('read_batch_without_token', [CommonController::class, 'readBatch']);//自动识别token

//'login_limit',
Route::group(['middleware'=>['enable_cross']],function(){
    Route::post('log_off', [UsersController::class, 'logOff']);//注销
    Route::post('set_batch_title', [SettingController::class, 'setBatchTitle']);//识别批次号
    Route::post('direct_in_storage', [App\Http\Controllers\Api\StorageManageController::class, 'directInStorage']);//直接入库
    Route::post('trans_out_way', [AdminController::class, 'transOutWay']);//出库方式转换
    Route::post('read_batch_no', [StorageManageController::class, 'readBatchNo']);//识别批次号
    Route::post('fast_out_storage', [StorageManageController::class, 'fastOutStorage']);//识别批次号
    Route::post('read_address', [CommonController::class, 'readAddress']);//智能识别地址信息
    Route::post('barcode', [CommonController::class, 'generateBarcode']);//生成条形码
    Route::post('region_list', [RegionController::class, 'list']);//省市区列表

    //物料商品分类管理
    Route::post('materiel_class_select', [MaterielClassController::class, 'select']);//物料商品分类下拉列表
    Route::post('materiel_class_add', [MaterielClassController::class, 'add']);//新建物料商品分类
    Route::post('materiel_class_del', [MaterielClassController::class, 'del']);//删除指定物料商品分类
    Route::post('materiel_class_edit', [MaterielClassController::class, 'edit']);//修改指定商品分类信息
    Route::post('materiel_class_list', [MaterielClassController::class, 'list']);//商品分类列表
    Route::post('materiel_class_rand_no', [MaterielClassController::class, 'randNo']);//商品分类随机编号

    //物料商品类型管理
    Route::post('materiel_type_add', [MaterielTypeController::class, 'add']);//新建物料商品类型
    Route::post('materiel_type_del', [MaterielTypeController::class, 'del']);//删除物料商品信息
    Route::post('materiel_type_edit', [MaterielTypeController::class, 'edit']);//修改商品信息
    Route::post('materiel_type_info', [MaterielTypeController::class, 'info']);//指定物料商品信息
    Route::post('materiel_type_select', [MaterielTypeController::class, 'select']);//物料列表
    Route::post('materiel_type_list', [MaterielTypeController::class, 'list']);//物料列表-含当前库存信息
    Route::post('materiel_type_rand_no', [MaterielTypeController::class, 'randNo']);//物料商品随机编号
    Route::post('edit_materiel_cost', [MaterielTypeController::class, 'editMaterielCost']);//入库

    //子账号管理
    Route::post('user_list', [AdminController::class, 'userList']);//子账号列表
    Route::post('trans_status', [AdminController::class, 'transStatus']);//启禁用账号状态
    Route::post('reset_pwd', [AdminController::class, 'resetPwd']);//重置子账号密码
    Route::post('del_user', [AdminController::class, 'delUser']);//删除子账号
    Route::post('add_user', [AdminController::class, 'addUser']);//新建子账号
    Route::post('edit_userinfo', [AdminController::class, 'editUserInfo']);//修改子账号基础信息
    Route::post('set_user_permission', [AdminController::class, 'setUser']);//设置子账号权限信息
    Route::post('get_user_permission', [AdminController::class, 'getUserPermission']);//获取子账号可用权限信息

    //账户-设置
    Route::post('change_mobile', [AdminController::class, 'changeMobile']);//修改手机号
    Route::post('modify_userinfo', [AdminController::class, 'modifyUserinfo']);//修改用户信息
    Route::post('change_password', [AdminController::class, 'changePassword']);//修改密码
    Route::post('user_center', [AdminController::class, 'userCenter']);//个人中心
    Route::post('relieve_wechat_bind', [AdminController::class, 'relieveWechatBind']);//解除微信绑定
    Route::post('wechat_bind', [AdminController::class, 'wechatBind']);//绑定微信
    Route::post('invite_list', [AdminController::class, 'inviteList']);//被邀请人列表
    Route::post('set_pwd', [AdminController::class, 'setPwd']);//设置密码

    //角色管理
    Route::post('role_add', [RoleController::class, 'add']);//添加角色
    Route::post('role_del', [RoleController::class, 'del']);//删除角色
    Route::post('role_edit', [RoleController::class, 'edit']);//修改角色信息及权限信息
    Route::post('role_list', [RoleController::class, 'list']);//角色列表
    Route::post('role_detail', [RoleController::class, 'detail']);//角色权限详细

    //模块管理
    Route::post('add_module', [ModuleController::class, 'add']);//增加
    Route::post('del_module', [ModuleController::class, 'del']);//删除
    Route::post('edit_module', [ModuleController::class, 'edit']);//修改
    Route::post('module_list', [ModuleController::class, 'list']);//权限信息列表
    Route::post('module_select', [ModuleController::class, 'select']);//一级权限模块列表-下拉

    //操作日志
    Route::post('log_list', [OperationLogController::class, 'logList']);

    //供应商客户
    Route::post('supplier_customer_add', [SupplierCustomerController::class, 'add']);
    Route::post('supplier_customer_edit', [SupplierCustomerController::class, 'edit']);
    Route::post('supplier_customer_del', [SupplierCustomerController::class, 'del']);
    Route::post('supplier_customer_list', [SupplierCustomerController::class, 'index']);
    Route::post('supplier_customer_find', [SupplierCustomerController::class, 'find']);
    Route::post('supplier_customer_select', [SupplierCustomerController::class, 'select']);

    //公司行业
    Route::post('company_class_list', [CompanyClassController::class, 'index']);
    Route::post('company_class_add', [CompanyClassController::class, 'add']);
    Route::post('company_class_edit', [CompanyClassController::class, 'edit']);
    Route::post('company_class_del', [CompanyClassController::class, 'del']);

    //记账类型
    Route::post('tally_class_list', [TallyClassController::class, 'index']);
    Route::post('tally_class_add', [TallyClassController::class, 'add']);
    Route::post('tally_class_edit', [TallyClassController::class, 'edit']);
    Route::post('tally_class_del', [TallyClassController::class, 'del']);

    //用户管理
    Route::post('approver_list', [AdminController::class, 'approverList']);//审批人列表

    //我的仓库
    Route::post('storage_list', [StorageController::class, 'storageList']);//仓库列表
    Route::post('storage_select', [StorageController::class, 'storageSelect']);//仓库列表-下拉框
    Route::post('create_storage', [StorageController::class, 'add']);//创建仓库
    Route::post('edit_storage', [StorageController::class, 'edit']);//修改仓库
    Route::post('del_storage', [StorageController::class, 'delete']);//修改仓库

    //司机
    Route::post('driver_list', [DriverController::class, 'index']);
    Route::post('driver_find', [DriverController::class, 'find']);
    Route::post('driver_add', [DriverController::class, 'add']);
    Route::post('driver_edit', [DriverController::class, 'edit']);
    Route::post('driver_del', [DriverController::class, 'del']);
    Route::post('driver_select', [DriverController::class, 'select']);

    //版本
    Route::post('version_list', [VersionsController::class, 'index']);
    Route::post('version_add', [VersionsController::class, 'add']);
    Route::post('version_edit', [VersionsController::class, 'edit']);
    Route::post('version_del', [VersionsController::class, 'del']);
    Route::post('version_find', [VersionsController::class, 'find']);

    //套餐
    Route::post('package_list', [PackageController::class, 'list']);//套餐列表
    Route::post('add_package_or_content', [PackageController::class, 'add']);//新建套餐或套餐内容
    Route::post('del_package_or_content', [PackageController::class, 'del']);//删除套餐或套餐内容
    Route::post('content_list', [PackageController::class, 'contentList']);//套餐内容列表
    //Route::post('package_edit', [PackageController::class, 'edit']);//修改套餐
    Route::post('edit_package_or_content', [PackageController::class, 'edit']);//修改套餐或套餐内容
    Route::post('package_storage_list', [PackageController::class, 'packageStorageList']);//指定套餐内容对应的在库信息列表(修改套餐内容用)
    Route::post('package_content_select', [PackageController::class, 'packageContentSelect']);//添加套餐内容-可用库存物料信息
    Route::post('package_out', [PackageController::class, 'packageOut']);//套餐出库

    //记账
    Route::post('tally_list', [TallyController::class, 'index']);
    Route::post('tally_find', [TallyController::class, 'find']);
    Route::post('tally_add', [TallyController::class, 'add']);
    Route::post('tally_edit', [TallyController::class, 'edit']);
    Route::post('tally_del', [TallyController::class, 'del']);

    //库存查看
    Route::post('storage_manage_list', [StorageManageController::class, 'list']);//库存列表
    Route::post('storage_manage_import', [CommonController::class, 'import']);//导入库存报表
    Route::post('batch_list', [StorageManageController::class, 'batchList']);//批次列表
    Route::post('clear_storage_manage', [StorageManageController::class, 'clear']);//批次列表
    Route::post('batch_materiel_info', [StorageManageController::class, 'batchMaterielInfo']);//批次采购详情

    //采购
    Route::post('materiel_in_storage', [MaterielController::class, 'materielInStorage']);//入库
    Route::post('cancel_materiel', [MaterielController::class, 'cancel']);//撤销

    //销售
    Route::post('sell_list', [SellController::class, 'index']);
    Route::post('sell_detail', [SellController::class, 'detail']);
    Route::post('sell_add', [SellController::class, 'add']);
    Route::post('sell_edit', [SellController::class, 'edit']);
    Route::post('sell_del', [SellController::class, 'del']);
    Route::post('sell_get_money', [SellController::class, 'getMoney']);//收款
    Route::post('sell_add_again', [SellController::class, 'addAgain']);//重新下单
    Route::post('sell_out', [SellController::class, 'out']);//出库
    Route::post('sell_repeal', [SellController::class, 'repeal']);//撤销
    Route::post('sell_prepare_out', [SellController::class, 'prepare']);//预出库
    Route::post('sell_pay_history', [SellController::class, 'payHistory']);//销售单支付记录
    Route::post('materiel_batch_list', [StorageManageController::class, 'materielBatchList']);//商品批次列表
    Route::post('sell_add_batch', [SellController::class, 'sellAddBatch']);//设置批次号
    Route::post('sell_batch_list', [SellController::class, 'sellBatchList']);//查看批次号
    Route::post('sell_batch_edit', [SellController::class, 'sellBatchEdit']);//编辑批次
    Route::post('sell_batch_del', [SellController::class, 'sellBatchDel']);//删除指定批次

    //报表
    Route::post('statement_income_expend_list', [StatisticsController::class, 'incomeOrExpend']);//收入或支出
    Route::post('statement_materiel', [StatisticsController::class, 'statementMateriel']);//采购报表
    Route::post('statement_materiel_detail', [StatisticsController::class, 'statementMaterielDetail']);//采购报表详细
    Route::post('statement_cost', [StatisticsController::class, 'statementCost']);//成本报表
    Route::post('statement_sell', [StatisticsController::class, 'statementSell']);//销售报表
    Route::post('statement_storage', [StatisticsController::class, 'statementStorage']);//仓库报表
    Route::post('statement_storage_detail', [StatisticsController::class, 'statementStorageDetail']);//仓库详细报表
    Route::post('statement_customer', [StatisticsController::class, 'statementCustomer']);//客户报表
    Route::post('statement_customer_detail', [StatisticsController::class, 'statementCustomerDetail']);//客户报表详细

    //售后
    Route::post('sales_return_list', [SalesReturnController::class, 'list']);
    Route::post('sales_return_add', [SalesReturnController::class, 'add']);
    Route::post('sales_return_find', [SalesReturnController::class, 'find']);//详细-with token
    Route::post('sales_return_edit', [SalesReturnController::class, 'edit']);
    Route::post('sales_return_repeal', [SalesReturnController::class, 'repeal']);//撤销
    Route::post('sales_return_in', [SalesReturnController::class, 'in']);//入库
    Route::post('sales_pay_history', [SalesReturnController::class, 'payHistory']);//退货单支付记录
    Route::post('sales_return_get_money', [\App\Http\Controllers\Api\SalesReturnController::class, 'getMoney']);//收款

    //采购
//    Route::post('add_materiel', [MaterielController::class, 'add']);//新建采购
//    Route::post('edit_materiel', [MaterielController::class, 'edit']);//修改采购单
    Route::post('materiel_list', [MaterielController::class, 'list']);//列表
    Route::post('materiel_pay_history', [MaterielController::class, 'payHistory']);//列表
    Route::post('materiel_in_storage', [MaterielController::class, 'materielInStorage']);//入库

    //报溢报损
    Route::post('overflow_breakage_add', [OverflowBreakageController::class, 'add']);
    Route::post('overflow_breakage_list', [OverflowBreakageController::class, 'index']);
    Route::post('overflow_breakage_detail', [OverflowBreakageController::class, 'detail']);
    Route::post('overflow_breakage_repeal', [OverflowBreakageController::class, 'repeal']);

    //审批
    Route::post('check_agree_or_refund', [CheckController::class, 'agreeOrRefund']);

    //快递模板
    Route::post('add_express_templete', [ExpressTempleteController::class, 'add']);//新建快递模板
    Route::post('edit_express_templete', [ExpressTempleteController::class, 'edit']);//编辑快递模板
    Route::post('del_express_templete', [ExpressTempleteController::class, 'del']);//删除快递模板
    Route::post('express_templete_list', [ExpressTempleteController::class, 'list']);//快递模板列表
    Route::post('top_express_templete', [ExpressTempleteController::class, 'top']);//置顶
    Route::post('termini_express_templete_list', [ExpressTempleteController::class, 'termini']);//，目的地省份城市列表
    Route::post('express_templete_detail', [ExpressTempleteController::class, 'detail']);//详情
    Route::post('cancel_top_templete', [ExpressTempleteController::class, 'cancelTop']);//取消置顶
    Route::post('cancel_templete', [ExpressTempleteController::class, 'clear']);//一键清空快递模板

    //计算快递结果
    Route::post('add_calc_express', [ExpressTempleteController::class, 'addCalc']);//新建计算快递结果
    Route::post('edit_calc_express', [ExpressTempleteController::class, 'editCalc']);//修改计算快递结果
    Route::post('list_calc_express', [ExpressTempleteController::class, 'listCalc']);//计算快递结果列表
    Route::post('del_calc_express', [ExpressTempleteController::class, 'deCalc']);//删除计算快递结果
    Route::post('detail_calc_express', [ExpressTempleteController::class, 'detailCalc']);//详细-计算快递结果
    Route::post('calc_express_templete', [ExpressTempleteController::class, 'calc']);//计算快递费用结果
    Route::post('get_kuaidi_list', [ExpressTempleteController::class, 'kuaidiList']);//获取模板中已存在的快递列表

    Route::post('log_detail', [LogController::class, 'detail']);//操作记录详情

    Route::post('chang_pwd', [UsersController::class, 'changePwd']);//操作记录详情

    //快递识别
    Route::post('discriminate_express_code', [ExpressController::class, 'discriminateExpressCode']);//快递识别

    //公告
    Route::post('add_announce', [AnnounceController::class, 'add']);//新建
    Route::post('edit_announce', [AnnounceController::class, 'edit']);//编辑
    Route::post('del_announce', [AnnounceController::class, 'delete']);//删除公告
    Route::post('list_announce', [AnnounceController::class, 'list']);//公告列表
    Route::post('publish_announce', [AnnounceController::class, 'publish']);//发布公告

    //zlf-图片画册
    Route::post('hc_add_picture_album',[PictureEditingController::class,'addPictureAlbum']);//添加图片画册
    Route::post('hc_del_upload_imgs',[PictureEditingController::class,'delAlbumImgs']);//删除图片画册图片
    Route::post('hc_upd_picture_album',[PictureEditingController::class,'updatePictureAlbum']);//修改图片画册信息
    Route::post('hc_picture_album_list',[PictureEditingController::class,'getPictureAlbumList']);//图片画册列表
    Route::post('hc_del_picture_album',[PictureEditingController::class,'delPictureAlbum']);//删除画册
    Route::post('hc_picture_album_info',[ContentTagsController::class,'getPictureAlbumInfo']);//查询画册信息
    Route::post('hc_add_pic_label',[ImageLabelController::class,'addImageLabel']);//添加画册标签
    Route::post('hc_pic_label_list',[ImageLabelController::class,'getImageLabelList']);//画册标签列表
    Route::post('hc_upd_pic_label',[ImageLabelController::class,'updImageLabel']);//修改画册标签
    Route::post('hc_del_pic_label',[ImageLabelController::class,'delImageLabel']);//删除画册标签
    Route::post('hc_pic_label_info',[ContentTagsController::class,'getImageLabelInfo']);//查询画册标签信息
    Route::post('hc_upload',[PictureEditingController::class,'upload']);//图片画册上传图片
    //zlf-文字画册
    Route::post('hc_add_text_img',[TextImageController::class,'addTextImage']);//添加文字画册
    Route::post('hc_del_text_image',[TextImageController::class,'delTextImage']);//删除文字画册
    Route::post('hc_upd_text_image',[TextImageController::class,'updateTextImage']);//修改文字画册
    Route::post('hc_text_image_list',[TextImageController::class,'getTextImageList']);//查询文字画册列表
    Route::post('hc_text_cover_music',[TextImageController::class,'updTextImageImgMusic']);//替换文字画册封面和背景音乐
    Route::post('hc_text_image_info',[ContentTagsController::class,'getTextImageInfo']);//查询文字画册信息
    //zlf-文字画册内容模板
    Route::post('hc_add_text_temp',[TextImageTemplatesController::class,'addContentTempLate']);//添加文字画册内容模板
    Route::post('hc_upd_text_temp',[TextImageTemplatesController::class,'updateContentTempLate']);//修改文字画册内容模板
    Route::post('hc_text_temp_list',[TextImageTemplatesController::class,'getContentTempLateList']);//查询文字画册内容模板列表
    Route::post('hc_del_text_temp',[TextImageTemplatesController::class,'delContentTempLate']);//删除文字画册内容模板
    Route::post('hc_del_img_video',[TextImageTemplatesController::class,'delMaterialImgVideo']);//删除画册内容模板素材中图片
    Route::post('hc_text_temp_info',[TextImageTemplatesController::class,'getContentTempLateInfo']);//删除文字画册内容模板
    Route::post('hc_upd_img_video',[TextImageTemplatesController::class,'updMaterialImgVideo']);//更换画册内容模板素材中图片
    Route::post('hc_index',[PictureEditingController::class,'getImagesTextAlbumList']);//画册首页-显示图片画册和文字画册
    Route::post('hc_index_del',[PictureEditingController::class,'delIndexAlbum']);//删除首页画册
    Route::post('hc_file_upload',[HcUploadController::class,'upload']);//单个文件上传
    Route::post('hc_add_content_tags',[ContentTagsController::class,'addContentTags']);//添加文字画册内容标签
    Route::post('hc_upd_content_tags',[ContentTagsController::class,'updContentTags']);//修改文字画册内容标签
    Route::post('hc_del_content_tags',[ContentTagsController::class,'delContentTags']);//删除文字画册内容标签
    Route::post('hc_content_tags_list',[ContentTagsController::class,'getTagsRelationContentList']);//文字画册内容标签关联内容模板列表
    Route::post('hc_content_tags_info',[ContentTagsController::class,'getContentTagsInfo']);//查询文字画册内容标签信息
    //zlf-快递模板
    Route::post('import_express_templete',[CreateExpressTemplatesController::class,'importExpressTemplates']);//导入快递模板
    Route::get('export_express_templete',[CreateExpressTemplatesController::class,'exportExpressTemplates']);//导出快递模板
    Route::get('express_temp_download',[CreateExpressTemplatesController::class,'download']);//快递模板下载
    //zlf-发货单
    Route::post('add_dispatch_list',[DispatchListController::class,'add']);//添加发货单和商品
    Route::post('upd_dispatch_list',[DispatchListController::class,'update']);//修改发货单和商品
    Route::post('dispatch_list_info',[DispatchListController::class,'find']);//发货单信息
    Route::post('dispatch_info',[ContentTagsController::class,'dispatchListInfo']);//分享/打印查询发货单信息
    Route::post('del_dispatch_list',[DispatchListController::class,'delete']);//删除发货单信息
    Route::post('get_dispatch_list',[DispatchListController::class,'dispatchList']);//发货单列表
    //zlf-送货单
    Route::post('add_delivery_ship',[DeliverySlipController::class,'add']);//添加送货单和商品
    Route::post('upd_delivery_ship',[DeliverySlipController::class,'update']);//修改送货单和商品
    Route::post('delivery_ship_info',[DeliverySlipController::class,'find']);//送货单信息
    Route::post('delivery_info',[ContentTagsController::class,'deliverySlipInfo']);//分享/打印查询送货单信息
    Route::post('del_delivery_ship',[DeliverySlipController::class,'delete']);//删除送货单信息
    Route::post('delivery_ship_list',[DeliverySlipController::class,'DeliverySlipList']);//送货单列表
    Route::post('delivery_goods_info',[DeliveryGoodsController::class,'find']);//送货单商品信息
    Route::post('delivery_goods_list',[DeliveryGoodsController::class,'goodsList']);//送货单商品列表
    //zlf-报价单
    Route::post('add_quotation_no',[QuotationNoController::class,'add']);//添加报价单和商品
    Route::post('upd_quotation_no',[QuotationNoController::class,'update']);//修改报价单和商品
    Route::post('quotation_no_info',[QuotationNoController::class,'find']);//报价单信息
    Route::post('quotation_info',[ContentTagsController::class,'quotationNoInfo']);//分享/打印查询报价单信息
    Route::post('del_quotation_no',[QuotationNoController::class,'delete']);//删除报价单信息
    Route::post('quotation_no_list',[QuotationNoController::class,'quotationNoList']);//报价单列表
    Route::post('quotation_goods_info',[QuotationGoodsController::class,'find']);//报价单商品信息
    Route::post('quotation_goods_list',[QuotationGoodsController::class,'goodsList']);//报价单商品列表
    Route::post('upload_goods_img',[QuotationGoodsController::class,'uploadGoodsImg']);//上传商品图片（单个）
    //zlf-收据
    Route::post('add_receipt',[ReceiptController::class,'add']);//添加收据
    Route::post('upd_receipt',[ReceiptController::class,'update']);//修改收据
    Route::post('receipt_info',[ReceiptController::class,'find']);//收据信息
    Route::post('get_info',[ContentTagsController::class,'receiptInfo']);//分享/打印查询收据信息
    Route::post('del_receipt',[ReceiptController::class,'delete']);//删除收据信息
    Route::post('receipt_list',[ReceiptController::class,'receiptList']);//收据表
    //zlf-医疗器械专用送货单
    Route::post('add_medical_delivery_order',[MedicalDeliveryOrderController::class,'add']);//添加医疗器械专用送货单和商品
    Route::post('upd_medical_delivery_order',[MedicalDeliveryOrderController::class,'update']);//修改医疗器械专用送货单和商品
    Route::post('medical_delivery_order_info',[MedicalDeliveryOrderController::class,'find']);//医疗器械专用送货单信息
    Route::post('medical_delivery_info',[ContentTagsController::class,'medicalDeliveryInfo']);//分享/打印查询医疗器械专用送货单信息
    Route::post('del_medical_delivery_order',[MedicalDeliveryOrderController::class,'delete']);//删除医疗器械专用送货单信息
    Route::post('get_medical_delivery_list',[MedicalDeliveryOrderController::class,'MedicalDeliveryOrderList']);//医疗器械专用送货单列表
    //zlf-医疗器械专用发货单
    Route::post('add_medical_deliver_order',[MedicalDeliverOrderController::class,'add']);//添加医疗器械专用送货单和商品
    Route::post('upd_medical_deliver_order',[MedicalDeliverOrderController::class,'update']);//修改医疗器械专用送货单和商品
    Route::post('medical_deliver_order_info',[MedicalDeliverOrderController::class,'find']);//医疗器械专用送货单信息
    Route::post('medical_deliver_info',[ContentTagsController::class,'medicalDeliverInfo']);//分享/打印查询医疗器械专用送货单信息
    Route::post('del_medical_deliver_order',[MedicalDeliverOrderController::class,'delete']);//删除医疗器械专用送货单信息
    Route::post('get_medical_deliver_list',[MedicalDeliverOrderController::class,'MedicalDeliverOrderList']);//医疗器械专用送货单列表
    //zlf-印章
    Route::post('add_seal',[SealManageController::class,'add']);//添加印章
    Route::post('upd_seal',[SealManageController::class,'update']);//修改印章
    Route::post('seal_manage_info',[SealManageController::class,'find']);//印章信息
    Route::post('get_seal_info',[ContentTagsController::class,'sealInfo']);//分享/打印查询印章信息
    Route::post('del_seal',[SealManageController::class,'delete']);//删除印章信息
    Route::post('get_seal_list',[SealManageController::class,'sealList']);//印章表
    Route::post('get_dispatch_list',[DispatchListController::class,'dispatchList']);//发货单列表
    Route::post('get_select_goods',[DispatchListController::class,'selectGoods']);//选择物料商品
    Route::post('get_create_number',[DispatchListController::class,'createNumber']);//创建编号
    //出入库操作记录
    Route::post('storage_log_del', [LogController::class, 'logDel']);
});

Route::group(['middleware'=>['enable_cross']],function(){
    Route::get('detail_sell_find', [CommonDetailController::class, 'sellFind']);
    Route::get('detail_sales_return_find', [CommonDetailController::class, 'salesReturnFind']);//退货单详细-without token
});

Route::post('sync_materiel_cost', [SyncDataController::class, 'syncMaterielCost']);//同步成本
Route::post('sync_sell_time', [SyncDataController::class, 'syncSellTime']);//同步采购时间
Route::post('sync_materiel_time', [SyncDataController::class, 'syncMaterielTime']);//同步采购时间
Route::post('sync_supplier', [SyncDataController::class, 'syncSupplier']);//同步采购时间
Route::post('sync_cost', [SyncDataController::class, 'syncCost']);//同步当前成本至上一次成本中


//设置
Route::post('set_switch', [SystemConfigController::class, 'set']);//设置开关
Route::post('get_switch', [SystemConfigController::class, 'get']);//获取开关

Route::post('new_announce', [CommonController::class, 'newAnnounce']);//最新公告

